package com.pactera.madp.cp.api.model.authorization;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

/**
 * @author: chenhao
 * @date: 2021/7/15 14:54
 * @description: 微信第三方平台推送消息
 */
public class ComponentPushMessage implements Serializable {
    private static final long serialVersionUID = -2744837315126381979L;
    /**
     * 验证票据推送
     */
    public static final String INFO_TYPE_TICKET = "component_verify_ticket";
    /**
     *公众号或小程序授权
     */
    public static final String INFO_TYPE_AUTHORIZED = "authorized";

    private String AppId;
    private long CreateTime;
    private String InfoType;
    private String ComponentVerifyTicket;
    private String AuthorizerAppid;
    private String AuthorizationCode;
    private long AuthorizationCodeExpiredTime;
    private String PreAuthCode;

    @JSONField(name = "AppId")
    public String getAppId() {
        return AppId;
    }

    @JSONField(name = "CreateTime")
    public long getCreateTime() {
        return CreateTime;
    }

    @JSONField(name = "InfoType")
    public String getInfoType() {
        return InfoType;
    }

    @JSONField(name = "ComponentVerifyTicket")
    public String getComponentVerifyTicket() {
        return ComponentVerifyTicket;
    }

    public void setAppId(String appId) {
        AppId = appId;
    }

    public void setCreateTime(long createTime) {
        CreateTime = createTime;
    }

    public void setInfoType(String infoType) {
        InfoType = infoType;
    }

    public void setComponentVerifyTicket(String componentVerifyTicket) {
        ComponentVerifyTicket = componentVerifyTicket;
    }

    public void setAuthorizerAppid(String authorizerAppid) {
        AuthorizerAppid = authorizerAppid;
    }

    public void setAuthorizationCode(String authorizationCode) {
        AuthorizationCode = authorizationCode;
    }

    public void setAuthorizationCodeExpiredTime(long authorizationCodeExpiredTime) {
        AuthorizationCodeExpiredTime = authorizationCodeExpiredTime;
    }

    public void setPreAuthCode(String preAuthCode) {
        PreAuthCode = preAuthCode;
    }
}
